package com.hk.service.kyc;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.Question;

public interface IQuestion {

    public Question findById(long id);

    public Question findBySeqNumAndGroupId(Long seqNum, Long groupId);

    /**
     * 保存
     * @return
     */
    public Long add(Question u);

    /**
     * 删除
     * @return
     */
    public void delete(Question u);

    /**
     * 更新
     */
    public void update(Question u);

    public List<Question> findByFilter(HqlFilter hqlFilter, int pageNum,
                                       int pageSize);

    public List<Question> findByFilter(HqlFilter hqlFilter);

    public Long countByFilter(HqlFilter hqlFilter);

}
